<?php

class asWidgetFormCustomTag extends sfWidgetForm {

    protected function configure($options = array(), $attributes = array()) {
        parent::configure($options, $attributes);

        $this->addOption('tag', 'div');
        $this->addOption('html', 'html');
    }

    public function render($name, $value = null, $attributes = array(), $errors = array()) {
        $tag = $this->getOption('tag');
        $html = $this->getOption('html');
        return "<$tag>$html</$tag>";
    }

}
